//
//  CSGuidePopView.m
//  CreateWithSuper
//
//  Created by chenjunbo on 2024/6/5.
//  Copyright © 2024 CS. All rights reserved.
//

#import "CSGuidePopView.h"

@interface CSGuidePopView ()

@property (weak, nonatomic) IBOutlet UILabel *topLabel;
@property (weak, nonatomic) IBOutlet UILabel *bottomLabel;

@end

@implementation CSGuidePopView

- (void)viewDidLoad {
    [super viewDidLoad];

    if (self.topStr){
        self.topLabel.text = self.topStr;
        self.bottomLabel.text = self.bottomStr;
    }
}

- (IBAction)leftTouch:(UIButton *)sender {
    [self dismissViewControllerAnimated:NO completion:nil];
    self.leftBlock ? self.leftBlock() : nil;
}

- (IBAction)rightTouch:(UIButton *)sender {
    [self dismissViewControllerAnimated:NO completion:nil];
    self.rightBlock ? self.rightBlock() : nil;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
